AHardwareBuffer_Desc

Buffer description. Used for allocating new buffers and querying parameters of existing ones.

Members

Variables

format
uint format;

< One of AHardwareBuffer_Format.

height
uint height;

< Height in pixels.

layers
uint layers;

Number of images in an image array. AHardwareBuffers with one layer correspond to regular 2D textures. AHardwareBuffers with more than layer correspond to texture arrays. If the layer count is a multiple of 6 and the usage flag AHARDWAREBUFFER_USAGE_GPU_CUBE_MAP is present, the buffer is a cube map or a cube map array.

rfu0
uint rfu0;

< Initialize to zero, reserved for future use.

rfu1
ulong rfu1;

< Initialize to zero, reserved for future use.

stride
uint stride;

< Row stride in pixels, ignored for AHardwareBuffer_allocate()

usage
ulong usage;

< Combination of AHardwareBuffer_UsageFlags.

width
uint width;

< Width in pixels.

Meta